package cn.pcManage.shopManage.dao;

import cn.common.shop.dao.BaseNoticeInfoMapper;
import cn.common.shop.model.BaseNoticeInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NoticeInfoMapper extends BaseNoticeInfoMapper{

    Integer getMaxIndex(@Param("type") String type);

    List<BaseNoticeInfo> getNoticeList(BaseNoticeInfo noticeInfo);

    BaseNoticeInfo getInfoByIndex(@Param("type") String type,
                                  @Param("index") Integer index);

    Integer getLaseIndexByType(@Param("type") String type);
}